// Copyright (c)  MOKEYISH. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for license information.

using NSQL.Statements;


namespace NSQL.Extensions
{
    public static class DataSetStatementExtensions
    {
        public static UnionStatement Union(this IDataSetStatement statement, IDataSetStatement unionStatement,
            UnionType unionType = UnionType.Distinct)
        {
            return Static.Union(statement, unionStatement, unionType);
        }

        public static UnionStatement UnionAll(this IDataSetStatement statement, IDataSetStatement unionStatement)
        {
            return Static.Union(statement, unionStatement, UnionType.All);
        }

        public static IntersectionStatement Intersect(this IDataSetStatement statement,
            IDataSetStatement otherStatement)
        {
            return Static.Intersect(statement, otherStatement);
        }

        public static MinusStatement Minus(this IDataSetStatement statement, IDataSetStatement otherStatement)
        {
            return Static.Minus(statement, otherStatement);
        }
    }
}